Rename struct xenkbd_position member abs_z to rel_z. Z-axis motion is
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 28 Feb 2008 13:09:28 +0000 (13:09 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 28 Feb 2008 13:09:28 +0000 (13:09 +0000)
relative, not absolute.
From: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/ioemu/hw/xenfb.c
xen/include/public/io/kbdif.h

index e2f181126e0dc46b2c4776ac9a181ab712c9b903..3594e2f43eca484ece52984b5fde3ab9eff839ba 100644 (file)
@@ -598,7 +598,8 @@ static int xenfb_send_key(struct xenfb *xenfb, bool down, int keycode)
 }
 
 /* Send a relative mouse movement event */
-static int xenfb_send_motion(struct xenfb *xenfb, int rel_x, int rel_y, int rel_z)
+static int xenfb_send_motion(struct xenfb *xenfb,
+                            int rel_x, int rel_y, int rel_z)
 {
        union xenkbd_in_event event;
 
@@ -612,7 +613,8 @@ static int xenfb_send_motion(struct xenfb *xenfb, int rel_x, int rel_y, int rel_
 }
 
 /* Send an absolute mouse movement event */
-static int xenfb_send_position(struct xenfb *xenfb, int abs_x, int abs_y, int abs_z)
+static int xenfb_send_position(struct xenfb *xenfb,
+                              int abs_x, int abs_y, int rel_z)
 {
        union xenkbd_in_event event;
 
@@ -620,7 +622,7 @@ static int xenfb_send_position(struct xenfb *xenfb, int abs_x, int abs_y, int ab
        event.type = XENKBD_TYPE_POS;
        event.pos.abs_x = abs_x;
        event.pos.abs_y = abs_y;
-       event.pos.abs_z = abs_z;
+       event.pos.rel_z = rel_z;
 
        return xenfb_kbd_event(xenfb, &event);
 }
index 7b4e404335999b92c84cb63f714bbc776ac74bd8..e1d66a51079a79e3fd2c73df3cb2476a65b6c1e8 100644 (file)
@@ -65,7 +65,7 @@ struct xenkbd_position
     uint8_t type;        /* XENKBD_TYPE_POS */
     int32_t abs_x;       /* absolute X position (in FB pixels) */
     int32_t abs_y;       /* absolute Y position (in FB pixels) */
-    int32_t abs_z;       /* absolute Z position (wheel) */
+    int32_t rel_z;       /* relative Z motion (wheel) */
 };
 
 #define XENKBD_IN_EVENT_SIZE 40